/*
 * @${NAME}: - 
 * @Author: 陆志炘 <zhixin.lu@hand-china.com>
 * @Date: 2022-02-16 11:08:16
 * @LastEditTime: 2022-04-29 14:10:17
 * @Copyright: Copyright (c) 2022, Hand
 */
import { lazy } from 'react';
import { HddFilled, FolderOpenFilled, LinkOutlined } from '@ant-design/icons';
import { ParentRoutesPropsType } from './typeConfig';

const routes: ParentRoutesPropsType[] = [
  {
    path: '/introduction',
    name: '简介',
    iocn: <HddFilled />,
    element: lazy((): any => import('../pages/Introduction')),
  },
  {
    path: '/components-utils-test',
    name: '组件&方法测试',
    iocn: <LinkOutlined />,
    element: lazy((): any => import('../pages/Test')),
  },
  {
    path: '/project-2022',
    name: '项目-2022',
    iocn: <FolderOpenFilled />,
    element: lazy((): any => import('../pages/Project/2022')),
    children: [
      {
        path: 'vue-mini',
        name: '模拟Vue的MVVM',
        element: lazy((): any => import('../pages/Project/2022/VueMini')),
      },
      {
        path: 'create-ds',
        name: '自动生成DS',
        element: lazy((): any => import('../pages/Project/2022/CreateDs')),
      },
      {
        path: 'node-websocket',
        name: '即时通讯',
        element: lazy((): any => import('../pages/Project/2022/NodeWebSocket')),
      },
      {
        path: 'mobx-study',
        name: 'Mobx使用',
        element: lazy((): any => import('../pages/Project/2022/MobxStudy')),
      },
    ],
  },
];

export default routes;